package com.debao.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Accessors(chain = true)
public class AppointDto {

    @NotNull(message = "课程不能为空")
    private Long courseId;

    @NotNull(message = "教练不能为空")
    private Long coachId;

    @NotNull(message = "预约日期不能为空")
    private List<String> dateList;

    @NotNull(message = "预约时间不能为空")
    private List<AppointUser> appointUserList;

    @NotBlank(message = "开始时间不能为空")
    private String startAt;

    @NotBlank(message = "结束时间不能为空")
    private String endAt;

    @NotBlank(message = "课程名称不能为空")
    private String courseName;

    @NotBlank(message = "教练名称不能为空")
    private String coachName;

    @Data
    public static class AppointUser {
        private Long userId;
        private String userName;
    }

}
